package com.guardchina.framework.web.plugins.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 描述：校验姓名
 *
 * @author lwb
 * @date 2019/8/19 15:04
 */
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target(ElementType.PARAMETER)
@Constraint(validatedBy = CheckNameValidator.class)
public @interface CheckName {

    boolean enableBlank() default false;

    String message() default "请输入有效的身份证号码";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
